#include "person.h"
void setName(Person* p, const char* name) {
    strcpy(p->name, name);
}


void setAge(Person* p, int age) {
    p->age = age;
}

Person* createPerson() {
    Person* p = (Person*)malloc(sizeof(Person));
    p->setName = setName;
    p->setAge = setAge;
    p->printInfo = printInfo;
    return p;
}

void printInfo(Person* p) {
    printf("Name: %s, Age: %dn", p->name, p->age);
}